from rest_framework.serializers import ModelSerializer

from demoapp.models import DemoTable


class DemoReqSerializer(ModelSerializer):
    class Meta:
        model = DemoTable
        fields = ['req']

class DemoResSerializer(ModelSerializer):
    class Meta:
        model = DemoTable
        fields = '__all__'


class DemoUSerializer(ModelSerializer):
    class Meta:
        model = DemoTable
        fields = ['ans','state']